package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.rc.common.model.BaseConEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户地址表 实体类。
 *
 * @author 27806
 * @since 2024-06-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(value = "address", schema = "rc")
public class Address implements BaseConEntity,Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 县/区
     */
    private String town;

    /**
     * 手机
     */
    private String phone;

    /**
     * 详细地址
     */
    private String street;

    /**
     * 联系人
     */
    private String contact;

    @Column(tenantId = true)
    private Long conId;

    /**
     * 是否是默认 1默认 0否
     */
    private Boolean isDefault;

}
